import { combineReducers } from "redux"

const counter = (state={count:0},action) =>{
    switch(action.type){
        case "increase":
            state.count=state.count+1
            return {...state}
        default:
            return state
    }
}

const cnodeRequest = (state={},action)=>{
    switch(action.type){
        case "setCnodeDataList":
            state.cnodeData = action.data
            return {...state}
        default:
            return state    
    }
}

export default combineReducers({
    counter,
    cnodeRequest
})